<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="author" content="lzy">
    <title>lzy-</title>
    <script src="jquery-3.1.1.js"></script>
    <style>
        html,body{
            height: 100%;
        }
        body{
            margin: 0;
        }
        #header{
            width: 1235px;
            height: 797px;
            background-image: url(img/鼠标放上去显示遮罩层.html.png);
            background-size: 100% 100%;
            position: relative;
            margin: 0 auto;
        }
        .d1{
            width: 386px;
            height: 422px;
            border: 4px solid orange;
            position: absolute;
            left: calc(50% - 196px);
            top: 8px;
            opacity: 0;
        }
        .left{
            position: absolute;
            width: 0px;
            height: 200px;
            left: 422px;
            bottom: 10px;
            background-color: gray;
            opacity: 0;
            text-align: center;
        }
       .leftbtn{
            position: absolute;
            width: 200px;
            height: 200px;
            left: 422px;
            bottom: 10px;
            text-align: center;
        }
        .right{
            position: absolute;
            width: 0px;
            height: 200px;
            right:0px;
            bottom: 10px;
            left:622px;
            background-color: gray;
            opacity: 0;
            text-align: center;
        }
        .rightbtn{
            position: absolute;
            width: 180px;
            height: 200px;
            right:0px;
            bottom: 10px;
            left:622px;
            text-align: center;
        }            
        h1{
            margin: 0;
            padding: 0;
            margin-top: 20px;
            width: 180px;
            height: 50px;
            overflow: hidden;
        }
        p{
            width: 180px;
            height: 30px;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <div id="header">
        <div class="d1"></div>
        <div class="left">
            <h1>品牌旗舰店</h1>
            <p>123132</p>
        </div>
        <div class="leftbtn"></div>
        <div class="right">
            <h1>品牌旗舰店</h1>
            <p>1231321</p>
        </div>
        <div class="rightbtn"></div>
    </div>
</body>
</html>
<script>
    $('.d1').hover(function(){
        $('.d1').animate({
            'opacity':'1',
        },1000)
    },function(){
        $('.d1').animate({
            'opacity':'0'
        },1000)
    });

    $('.leftbtn').hover(function(){
        $('.left').animate({
            'opacity':'0.5',
            'width':200,
        })
    },function(){
        $('.left').animate({
            'opacity':'0',
            'width':0,
        })        
    })

    $('.rightbtn').hover(function(){
        $('.right').animate({
            'opacity':'0.5',
            'width':180,
        })        
    },function(){
        $('.right').animate({
            'opacity':'0',
            'width':0,
        })          
    })
</script>